using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class BookOfCircles : BrownBook
	{
		public static readonly BookContent Content = new BookContent
			(
				"Book Of Circles", "unknown",
				new BookPageInfo/////////////\
				(
					"All begins with the three", 
					"principles:",

					"Control Passion and",
                    "Diligence."
                ),
                new BookPageInfo
                (
                    "From Control springs", 
					"Diligence.",

					"From Passion springs feeling.",
 
                    "From Diligence springs",
                    "Persistence."
                ),
                new BookPageInfo/////////////\
                (
                    "But these three are no",
                    "more important than the",
                    "other five: Control com",
                    "bines with Passion to",
                    "give Balance. Passion",
                    "combines with Diligence",
                    "to yield Achievement."
                ),
                new BookPageInfo
                (
                    "And Diligence joins with",
                    "Control to provide",
                    "Precision.",

                    "The absence of Control",
                    "Passion and Diligence is",
                    "Chaos."
                 ),
				new BookPageInfo
				(
					"Thus the absence of the",
                    "principles points toward",
                    "the seventh virtue, Order.",

                    "The three principles unify",
                    "to form Singularity."
				),
                new BookPageInfo
                (
                    "This is the eighth virtue,",
                    "but is also the first,",
                    "because within Singularity",
                    "can be found all the",
                    "principles and thus all",
                    "the virtues."
                ),
                new BookPageInfo
                (
                    "A circle has no end",
                    "It continues forever,",
                    "with all parts equally",
                    "important in the success",
                    "of the whole."
                ),
                new BookPageInfo
                (
                    "Our society is the same.",
                    "It too continues forever,",
                    "with all members (and all",
                    "virtues) equal parts of",
                    "The unified whole."
                )
			);

		public override BookContent DefaultContent{ get{ return Content; } }

		[Constructable]
		public BookOfCircles() : base( false )
		{
            Hue = 2210;
		}

		public BookOfCircles( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( (int)0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();
		}
	}
}